<include file="public/shop_header"/>

<body>

<!--main-->
<style type="text/css">
body{ background:#f4f4f4;}
</style>
<form id="cart_sub">
  <div class="my-carManag">
    <a href="javascript:;" class="manag-btn" id="manag-btn">管理</a>
    <a href="{:U('Goods/index')}" class="manag-btn" >返回首页</a>
  </div>

  <div id="cart-list"></div>

  <!--点击管理弹出-->
  <div class="my-carOpera clearfix" id="manag-pup">
    <div class="arge fl" style="display: none">
      <input type="checkbox" name="moren" id="quanx2">
      <label for="quanx2">全选</label>
    </div>
    <a href="javascript:;" class="go-sett fr" onclick="del_cart()">删除</a>
  </div>
</form>

<script type="text/javascript">
    CartList();

  $(".manag-btn").click(function (){
      if($("#manag-pup").css("display")=="none"){
         $("#manag-pup").show();
         $(this).text("完成");
      }else{
         $("#manag-pup").hide();
         $(this).text("管理");
      }
  });

  function del_cart(){
      if(b_request == 0)
          return false;
      b_request = 0;
      $.ajax({
          type : "POST",
          url:"/Home/Cart/del_cart.html",
          dataType: 'json',
          data: $('#cart_sub').serialize(),
          success: function(data){
              b_request = 1;
              if (data.status == 200){
                  CartList();
              }
          }
      });
  }

</script> 
<!--点击管理弹出 End-->

<include file="public/shop_footer"/>

</body>
</html>
